import {postData} from "./http";

export const selectAllOrderByPage = (currentPage, size, data) => postData(`/orders/selectAllOrderByPage?currentPage=${currentPage}&size=${size}`, data);

export const adminUploadFile = (data) => postData(`/orders/adminUploadFile`, data);

export const adminAddOrder = (data) => postData(`/orders/adminAddOrder`, data);

export const getOrderByOrderId = (data) => postData(`/orders/getOrderByOrderId`, data);

export const changeOrderById = (data) => postData(`/orders/changeOrderById`, data);

export const adminDeleteOrderById = (data) =>postData(`/orders/adminDeleteOrderById`, data);

export const selectAllOrders = () =>postData(`/orders/selectAllOrders`);

export const selectOrdersByDay = (data) =>postData(`/orders/selectOrdersByDay`, data)
